package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.ResourceCommentService;
import com.it.park.dao.ResourceCommentMapper;
import com.it.park.model.ResourceComment;

@Service("resourceCommentService")
public class ResourceCommentServiceImpl extends BaseServiceImpl<ResourceComment> implements ResourceCommentService {
	
	@Autowired
	private  ResourceCommentMapper  resourceCommentMapper;

	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return resourceCommentMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(ResourceComment record) {
		return resourceCommentMapper.insertSelective(record)==1;
	}
	@Override
	public ResourceComment selectByPrimaryKey(Integer id) {
		return resourceCommentMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(ResourceComment record) {
		return resourceCommentMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(ResourceComment record) {
		return resourceCommentMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public boolean insert(ResourceComment record) {
		return resourceCommentMapper.insert(record)==1;
	}
	@Override
	public List<ResourceComment> selectAll() {
		return resourceCommentMapper.selectAll();
	}
	@Override
	public List<ResourceComment> selectPagination(Map<String, Object> map) {
		return resourceCommentMapper.selectPagination(map);
	}
	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return resourceCommentMapper.selectTotal(map);
	}
	@Override
	public ResourceComment selectIsExist(ResourceComment record) {
		return resourceCommentMapper.selectIsExist(record);
	}
	@Override
	public Integer selectAvgScore(Integer resourceId) {
		return resourceCommentMapper.selectAvgScore(resourceId);
	}
	@Override
	public boolean updateByPrimaryKeyWithBLOBs(ResourceComment record) {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public List<ResourceComment> selectPagination(ResourceComment t) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Integer selectTotal(ResourceComment t) {
		// TODO Auto-generated method stub
		return null;
	}
	

}
